package com.mxpio.erp.common.equipment.service;

import com.mxpio.erp.common.equipment.entity.EquipmentArea;
import com.mxpioframework.system.service.BaseService;

import java.util.List;


/**
 * 区域结构设置Service接口
 *
 * @author Cheng
 * @date 2023-06-24
 */
public interface EquipmentAreaService extends BaseService<EquipmentArea> {

    /**新增节点*/
    void addArea(EquipmentArea equipmentArea);

    /**删除节点*/
    void deleteArea(String id);

    /**修改节点*/
    void updateArea(EquipmentArea equipmentArea);

    /**
     * 获取自根节点至上级区域的全称
     * @param pid
     * @return
     */
    String getParentAllNameByPid(String pid);

    /**
     * 获取字根节点值当前区域的列表
     * @param list
     * @param idVal
     * @return
     */
    List<EquipmentArea> getFatherList(List<EquipmentArea> list, String idVal);

    /**
     * 根据ID查询所有子节点
     * @param ids
     * @return
     */
    String queryTreeChildIds(String ids);


}
